package com.study.demo.aop.demo4;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: elvin
 * @time: 2019-08-15 10:03
 * @desc:
 **/
//@Transactional
//@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public void add(){
        userMapper.add();
        //int a =  1 / 0;
    }
}
